﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="ExpenseEditor.aspx.cs" Inherits="School.Pages.Accounting.ExpenseEditor" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>        
    <table>
        <tr>
            <td>
                <table width="100%">
                    <tr>
                        <td style="width: 20%">
                            مسمى
                        </td>
                        <td>
                            <asp:TextBox ID="TxtName" runat="server" MaxLength="100"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            كود
                        </td>
                        <td>
                            <asp:TextBox ID="TxtCode" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%;">
                            بيان
                        </td>
                        <td>
                            <asp:TextBox ID="TxtDetail" runat="server" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            الدفعات
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    التاريخ
                                    <asp:TextBox ID="TxtDate" runat="server">
                                    </asp:TextBox>
                                    <asp:CalendarExtender ID="TxtDate_CalendarExtender" runat="server" Enabled="True"
                                        TargetControlID="TxtDate" Format="yyyy-MM-dd">
                                    </asp:CalendarExtender>
                                    &nbsp;المبلغ
                                    <asp:TextBox ID="TxtValue" runat="server">
                                    </asp:TextBox>
                                    &nbsp;<asp:Button ID="Button2" runat="server" Text="اضافة دفعة" OnClick="Button2_Click" />
                                    <br />
                                    <asp:GridView ID="GridView1" runat="server" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound"
                                        OnRowDeleting="GridView1_RowDeleting" Width="100%" CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter"
                                        FooterStyle-CssClass="GridHeaderFooter" PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
                                        <Columns>
                                            <asp:ButtonField CommandName="Delete" Text="حذف" />
                                        </Columns>
                                    </asp:GridView>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            قابلة للخصم
                        </td>
                        <td>
                            <asp:CheckBox ID="ChkDiscountable" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            تلقائى مع الخدمات
                        </td>
                        <td>
                            <asp:CheckBox ID="ChkAutomatic" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            قابلة للإرتجاع
                        </td>
                        <td>
                            <asp:DropDownList ID="LstReturnOptions" runat="server">
                                <asp:ListItem Value="0">غير قابل</asp:ListItem>
                                <asp:ListItem Value="1">مبلغ</asp:ListItem>
                                <asp:ListItem Value="2">نسبة</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;قيمة / نسبة
                            <asp:TextBox ID="TxtRValue" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            مرتجع مع التحويل بين الشهادات / الأقسام
                        </td>
                        <td>
                            <asp:DropDownList ID="LstTransactionOption" runat="server">
                                <asp:ListItem Value="0">غير قابل</asp:ListItem>
                                <asp:ListItem Value="1">مبلغ</asp:ListItem>
                                <asp:ListItem Value="2">نسبة</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;قيمة / نسبة
                            <asp:TextBox ID="TxtTValue" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            جهة التطبيق
                        </td>
                        <td>
                            <asp:DropDownList ID="LstDepartments" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="Button1" runat="server" Text="حفظ" OnClick="Button1_Click" />
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                <table>
                    <tr>
                        <td>
                            مجال التطبيق
                        </td>
                        <td>
                            <div runat="server" id="StructureTree" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
